package org.particlethink.response;

import io.swagger.v3.oas.annotations.media.Schema;
import org.particlethink.model.Acceptance;
import org.particlethink.model.ProjectUser;

import java.util.Date;
import java.util.List;

public class AcceptanceResponse {
    private int id;
    @Schema(description = "验收单")
    private String no;
    @Schema(description = "验收时间")
    private Date createdAt;
    @Schema(description = "验收人")
    private ProjectUserResponse creator;
    @Schema(description = "车牌")
    private String carNumber;//车牌
    @Schema(description = "物料进场照片")
    private List<String> arriveImages;//附件
    @Schema(description = "图片")
    private List<String> images;//图片

    public AcceptanceResponse(Acceptance acceptance, ProjectUser creator) {
        this.id = acceptance.getId();
        this.createdAt = acceptance.getCreatedAt();
        this.carNumber = acceptance.getCarNumber();
        this.arriveImages = acceptance.getArriveImages();
        this.images = acceptance.getImages();
        this.creator = new ProjectUserResponse(creator);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }


    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }


    public List<String> getArriveImages() {
        return arriveImages;
    }

    public void setArriveImages(List<String> arriveImages) {
        this.arriveImages = arriveImages;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public ProjectUserResponse getCreator() {
        return creator;
    }

    public void setCreator(ProjectUserResponse creator) {
        this.creator = creator;
    }
}
